package com.sgb.member.entity;

import com.google.gson.annotations.SerializedName;
import com.swgk.core.util.DateUtils;

import java.util.List;

public class MemberTenderListEntity {
    @SerializedName("id")
    private String id;
    @SerializedName("cityNo")
    private String cityNo;
    @SerializedName("price")
    private String price;
    @SerializedName("introduce")
    private String introduce;
    @SerializedName("name")
    private String name;
    @SerializedName("endTime")
    private String endTime;
    private String endTimeStr;
    @SerializedName("applyEndTime")
    private String applyEndTime;
    private String applyEndTimeStr;
    @SerializedName("type")
    private String type;
    @SerializedName(value = "status", alternate = {"state"})
    private String status;
    @SerializedName("tenderNo")
    private String tenderNo;
    @SerializedName("projName")
    private String projName;
    @SerializedName(value = "comName", alternate = {"companyName"})
    private String companyName;
    @SerializedName("address")
    private String address;
    @SerializedName("startTime")
    private String startTime;
    private String startTimeStr;
    @SerializedName("typeName")
    private String typeName;
    // 中标时间
    private String winningTime;
    private String winningTimeStr;
    // 竞标时间
    private String bidTime;
    private String bidTimeStr;
    //招标方式 1、常规招标；2、简易招标
    @Deprecated //V2.7版本弃用
    private int modeType;
    //招标方式：1、资格预审；2、资格后审；3、报价即报名  2.9改为报名方式
    private Integer verticalTypeValue;
    //招标方式翻译
    private String verticalTypeName;
    //招标轮次
    private String rotation;
    private String localLat;
    private String localLng;
    private String distance;
    //招标方式：招标方式（name）1、公开招标；2、邀请招标
    private String biddingMethodName;

    private List<MShowList> materialGoods;
    private List<MShowList> machineryGoods;
    private List<MShowList> labourGoods;
    private List<MShowList> customGoods;

    private String[][] goodsLists;
    private String[] goodsHeaders;

    private String updated;
    private String updatedStr;
    private String region;

    public String getRegion() {
        return region;
    }

    public String getUpdatedStr() {
        if (updatedStr == null)
            return "";
        if (!"".equals(updatedStr))
            return DateUtils.stampToDay(updatedStr) + "";
        return updatedStr;
    }

    public void setUpdatedStr(String updatedStr) {
        this.updatedStr = updatedStr;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getUpdated() {
        return updated;
    }

    public void setUpdated(String updated) {
        this.updated = updated;
    }

    public String[][] getGoodsLists() {
        return goodsLists;
    }

    public void setGoodsLists(String[][] goodsLists) {
        this.goodsLists = goodsLists;
    }

    public String[] getGoodsHeaders() {
        return goodsHeaders;
    }

    public void setGoodsHeaders(String[] goodsHeaders) {
        this.goodsHeaders = goodsHeaders;
    }


    public List<MShowList> getMaterialGoods() {
        return materialGoods;
    }

    public void setMaterialGoods(List<MShowList> materialGoods) {
        this.materialGoods = materialGoods;
    }

    public List<MShowList> getMachineryGoods() {
        return machineryGoods;
    }

    public void setMachineryGoods(List<MShowList> machineryGoods) {
        this.machineryGoods = machineryGoods;
    }

    public List<MShowList> getLabourGoods() {
        return labourGoods;
    }

    public void setLabourGoods(List<MShowList> labourGoods) {
        this.labourGoods = labourGoods;
    }

    public List<MShowList> getCustomGoods() {
        return customGoods;
    }

    public void setCustomGoods(List<MShowList> customGoods) {
        this.customGoods = customGoods;
    }

    public String getBiddingMethodName() {
        return biddingMethodName;
    }

    public void setBiddingMethodName(String biddingMethodName) {
        this.biddingMethodName = biddingMethodName;
    }

    public String getLocalLat() {
        return localLat;
    }

    public void setLocalLat(String localLat) {
        this.localLat = localLat;
    }

    public String getLocalLng() {
        return localLng;
    }

    public void setLocalLng(String localLng) {
        this.localLng = localLng;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    @Deprecated
    public int getModeType() {
        return modeType;
    }
    @Deprecated
    public void setModeType(int modeType) {
        this.modeType = modeType;
    }

    public Integer getVerticalTypeValue() {
        return verticalTypeValue;
    }

    public void setVerticalTypeValue(Integer verticalTypeValue) {
        this.verticalTypeValue = verticalTypeValue;
    }

    public String getVerticalTypeName() {
        return verticalTypeName;
    }

    public void setVerticalTypeName(String verticalTypeName) {
        this.verticalTypeName = verticalTypeName;
    }

    public String getWinningTime() {
        if (winningTime == null)
            return "";
        if (!"".equals(winningTime))
            return DateUtils.stampToDay(winningTime) + "";
        return winningTime;
    }

    public void setWinningTime(String winningTime) {
        this.winningTime = winningTime;
    }

    public String getEndTimeStr() {
        if (endTimeStr == null)
            return "";
        if (!"".equals(endTimeStr))
            return DateUtils.stampToDay(endTimeStr) + "";
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }

    public String getApplyEndTimeStr() {
        if (applyEndTimeStr == null)
            return "";
        if (!"".equals(applyEndTimeStr))
            return DateUtils.stampToDay(applyEndTimeStr) + "";
        return applyEndTimeStr;
    }

    public void setApplyEndTimeStr(String applyEndTimeStr) {
        this.applyEndTimeStr = applyEndTimeStr;
    }

    public String getStartTimeStr() {
        if (startTimeStr == null)
            return "";
        if (!"".equals(startTimeStr))
            return DateUtils.stampToDay(startTimeStr) + "";
        return startTimeStr;
    }

    public void setStartTimeStr(String startTimeStr) {
        this.startTimeStr = startTimeStr;
    }

    public String getWinningTimeStr() {
        if (winningTimeStr == null)
            return "";
        if (!"".equals(winningTimeStr))
            return DateUtils.stampToDay(winningTimeStr) + "";
        return winningTimeStr;
    }

    public void setWinningTimeStr(String winningTimeStr) {
        this.winningTimeStr = winningTimeStr;
    }

    public String getBidTimeStr() {
        if (bidTimeStr == null)
            return "";
        if (!"".equals(bidTimeStr))
            return DateUtils.stampToDay(bidTimeStr) + "";
        return bidTimeStr;
    }

    public void setBidTimeStr(String bidTimeStr) {
        this.bidTimeStr = bidTimeStr;
    }

    public String getBidTime() {
        if (bidTime == null)
            return "";
        if (!"".equals(bidTime))
            return DateUtils.stampToDay(bidTime) + "";
        return bidTime;
    }

    public void setBidTime(String bidTime) {
        this.bidTime = bidTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEndTime() {
        if (endTime == null)
            return "";
        if (!"".equals(endTime))
            return DateUtils.stampToDay(endTime) + "";
        return endTime;
    }

    public String getEndTime1() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getApplyEndTime() {
        if (applyEndTime == null)
            return "";
        if (!"".equals(applyEndTime))
            return DateUtils.stampToDay(applyEndTime) + "";
        return applyEndTime;
    }

    public String getApplyEndTime1() {
        return applyEndTime;
    }

    public void setApplyEndTime(String applyEndTime) {
        this.applyEndTime = applyEndTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTenderNo() {
        return tenderNo;
    }

    public void setTenderNo(String tenderNo) {
        this.tenderNo = tenderNo;
    }

    public String getProjName() {
        return projName;
    }

    public void setProjName(String projName) {
        this.projName = projName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getStartTime() {
        if (startTime == null)
            return "";
        if (!"".equals(startTime))
            return DateUtils.stampToDay(startTime) + "";
        return startTime;
    }

    public String getStartTime1() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getRotation() {
        return rotation;
    }

    public void setRotation(String rotation) {
        this.rotation = rotation;
    }
}
